package com.longjianghuasheng.logistics.business.home

import android.os.Parcelable
import com.chad.library.adapter.base.entity.MultiItemEntity
import com.longjianghuasheng.logistics.data.model.bean.ApiResponseNoData
import kotlinx.parcelize.Parcelize

const val TYPE_TITLE = 1
const val TYPE_BANNER = 2
const val TYPE_NEWS = 3


data class HomeBean(
    override val itemType: Int = 0,
    var newsResponse: NewsResponse = NewsResponse(),
    var city: String = ""
) : MultiItemEntity


data class NewsResponse(
    var counts: Int? = 0,
    var banner: MutableList<String>? = mutableListOf(),
    var data: MutableList<News>? = mutableListOf(),
    var type: MutableList<TypeResponse>? = mutableListOf(),
    var page: Int? = 0
) : ApiResponseNoData()

data class News(
    var create_time: String? = "",
    var id: Int? = 0,
    var title: String? = ""
)

@Parcelize
data class TypeResponse(
    var isChecked: Boolean = false,
    var id: Int? = 0,
    var picurl: String? = "",
    var picurl2: String? = "",
    var picurl3: String? = "",
    var title: String? = "",
    var types: MutableList<TypeResponse>,
) : Parcelable


data class ServiceType(
    var data: MutableList<TypeResponse>? = mutableListOf(),
) : ApiResponseNoData()

